package org.webbase.report.dao.hibernate;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;
import org.hibernate.SQLQuery;
import org.springframework.stereotype.Repository;
import org.webbase.common.util.Md5Util;
import org.webbase.report.dao.FormDao;
import org.webbase.report.pojo.Form;
import org.webbase.system.dao.hibernate.BaseDaoImpl;
import org.webbase.system.pojo.User;

@Repository
public class FormDaoImpl extends BaseDaoImpl<Form> implements FormDao {

	@Override
	public SQLQuery createSqlQuery(String sql){
		return super.createSqlQuery(sql);
	}
	
	@Override
	public void add(Form obj) {
		obj.setCreateTime(new Date());
		obj.setUseColumn(22);
		getSession().save(obj);
	}
}
